//导入封装好的axios
import request from './request'
import qs from 'qs';

//定义一个请求精品的数据
export const JingPinAPI = () => request.get("/products/recommend")

//定义一个发送验证码的请求
//params 预期 {phone:1348886666}
//【第一步：定义方法，请求接口】
export const SendSMSAPI = (params) => request.post("/sendSMS", qs.stringify(params))

//登录请求
export const PhoneReginAPI = (params) => request.post("/phoneRegin", qs.stringify(params))
export const WeixinLoginApi = (params) => request.post(`/wechatUsers/PCLogin`, qs.stringify(params));
export const BindingAPI = (params) => request.post(`/wechatUsers/binding`, qs.stringify(params));